package com.sz.sendmsg.feign;

import com.sz.sendmsg.entity.Log;
import com.sz.sendmsg.vo.ExceQueryVo;
import com.sz.sendmsg.vo.LogQueryVO;
import com.sz.sendmsg.vo.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "EXCEPTION-HANDING")
public interface LogFeign {
    @PostMapping("/add/log")
     void addLog(Log log);

    @PostMapping("/exec/find/all")
     ExceQueryVo getExecFindAll(@RequestBody PageVO vo);
    @PostMapping("/exec/modify/{name}")
     String modifyStatus(@PathVariable("name") String name);
    @PostMapping("/query/logs")
     LogQueryVO getLogs(@RequestBody PageVO vo);
    @PostMapping("/exec/cancel/{name}")
     String cancelStatus(@PathVariable("name") String name);
}
